package com.company;

/**
 * @description:
 * @author: 10445
 * @date: Created in 2020/6/8 23:37
 * @version: v1.0
 * @modified By:
 */
public class Ui {


    public void displayStaus(Sense sense){
        System.out.println();
        System.out.println("欢迎来到龙宫！");
        System.out.println("这是一个超级无聊的游戏。");
        System.out.println("输入邀请码有惊喜（默认值888888）");
        System.out.println("如果需要帮助，请输入 'help' 。");
        System.out.println();
        sense.showPromt();
        System.out.println("--------------------------------------------------");
        System.out.println(sense.getPerson().getDescription()+sense.getPerson().getHPValue());
        for (MonsterWolf item:sense.getMonsterWolfSet().getMonsterWolves()
             ) {
            System.out.println(item.getId()+"("+item.getDescription()+"):"+item.getHPValue());
        }
        System.out.println("--------------------------------------------------");

    }

    public void displayHelpMsg(){
        System.out.println("有四条指令: chop(chop wolf1) bye help go.");
    }
    public void displayBye(){
        System.out.println("Bye bye");
    }



    public void displayError(){
        System.out.println("输入错误，非法命令");
    }


    public void displayDamageMsg(Creature attackcreature,Creature targetcreature){
        System.out.println(attackcreature.getDescription()+"对"+targetcreature.getDescription()+"造成了"
                +(-attackcreature.getCurrentWeapon().getDamagePoints())+"伤害");
    }





}
